Skip to content

Conversation

williasc
Copy link
Member

@williasc williasc commented Nov 16, 2026 •

Closes issue #48

Error messages now say what went wrong (offline, server down, too many requests, and so on) and what the user can do, with an icon for each kind and “Prøv igjen” only where trying again helps. A banner shows when the user is offline and resends the failed requests when the connection comes back, and a page that fails to load shows an error page instead of a blank screen. No search results, wine not found and the 404 page now explain why they are empty and link the user onward.

@williasc williasc requested a review from a team as a code owner November 16, 2026 21:35
@williasc williasc linked an issue Nov 16, 2026 that may be closed by this pull request
Copy link
Member

@siverne siverne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally: npm run check passes, the offline banner appears and clears when the connection comes back, a stopped backend gives the server error with «Feilen er hos oss, ikke hos deg», no results explains where the search looks, and the 404 page links onward.

This is a clear improvement. Sorting errors into kinds with their own text and icon, and only offering «Prøv igjen» where retrying can help, is much better than the one notice we had. Good that authMessages reuses the same texts instead of keeping its own.

Two small notes, neither blocking:

ConnectionBanner refetches every active query that failed. That is the right behaviour, but on a page with several queries it means a small burst of requests the moment the connection returns.
NETWORK_MESSAGE matches on English browser wording, which is a bit brittle if a browser changes its text. The comment explains why, and I do not have a better suggestion.

@siverne siverne merged commit 88129e8 into main Nov 16, 2026
@siverne siverne deleted the 48-error-messages branch November 16, 2026 21:53
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dedicated error messages
2 participants